package hu.diploma.web.server.restlet.resources;

import hu.diploma.common.resource.CallResource;
import hu.diploma.common.service.CallsService;
import hu.diploma.common.vos.CallVo;
import hu.diploma.core.util.ServiceProviderImpl;

import java.util.ArrayList;

import org.restlet.resource.ServerResource;

public class CallResourceImpl extends ServerResource implements CallResource {
	CallsService callsService = ServiceProviderImpl.getServiceProvider().getCallService();

	public void merge(ArrayList<CallVo> emailVos) {

		for (CallVo callVo : emailVos) {
			try {
				callsService.save(callVo);
			} catch (Exception e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}

	}

}
